package com.itheima.mall.service.ums;

import com.itheima.mall.api.ums.UmsResourceCategoryServiceApi;
import com.itheima.mall.pojo.ums.UmsResourceCategory;
import com.itheima.mall.vo.R;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class UmsResourceCategoryService {

    @DubboReference
    UmsResourceCategoryServiceApi umsResourceCategoryServiceApi;

    public R UmsResourceCategoryCreate(UmsResourceCategory umsResourceCategory) {
        return umsResourceCategoryServiceApi.UmsResourceCategoryCreate(umsResourceCategory);
    }

    public R UmsResourceCategoryDelete(Long id) {
        return umsResourceCategoryServiceApi.UmsResourceCategoryDelete(id);
    }

    public R UmsResourceCategoryListAll() {
        return umsResourceCategoryServiceApi.UmsResourceCategoryListAll();
    }

    public R UmsResourceCategoryUpdate(Long id, UmsResourceCategory umsResourceCategory) {
        return umsResourceCategoryServiceApi.UmsResourceCategoryUpdate(id,umsResourceCategory);
    }
}